package abstractDemo2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 阿宾
 * Date: 2024-10-15
 * Time: 19:29
 */
public class Test {
    public static void main(String[] args) {
        Frog frog = new Frog("小明",1);
        System.out.println(frog.getName() + "," + frog.getAge());
        frog.drink();
        frog.eat();
    }
}
